-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add callbackUrl option #25
Add callbackUrl option #25
Conversation
@@ -41,7 +41,7 @@ export const findExistingJob = async ( | |||
'The Smartling adapter requires a Smartling project identifier and a proxy URL. Please check your secrets document in this dataset, per the plugin documentation.', | |||
) | |||
} | |||
const url = `https://api.smartling.com/jobs-api/v3/projects/${project}/jobs?jobName=${documentId}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The jobName
QS filter has been removed because it breaks if the job does not use the documentId
as job's name in Smartling.
It fetches all jobs and filter by referenceNumber
using the same logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey arthur! i would prefer this stay in the plugin for backwards compatibility. we've only added the additional logic to include the reference number a month or so ago, so other users may have old jobs that do not have a reference number encoded. ideally, this would be removed with a major version change, because it's technically a breaking change for users with in-progress jobs.
there is additional logic in the following few lines to use either the file URI or the reference number as a "catch." if you've noticed breaking behavior with this logic, let me know, but i'd rather catch both cases.
36e5dae
to
2d44cc7
Compare
this was enabled, I believe! closing now :) |
Description
This PR implements a fix for this issue
Add a new
customParams.callbackUrl
option toTranslationsTabConfigOptions
to allow apps to inform a callback url to be called after the content has been translated in Smartling.You can read about more this parameter for Smartling here
Change
Smartling allows to inform a callback url at 2 different moments:
I made the call to set the callback url while uploading the file to a batch. Why?
Related PR's: